using AutoMapper;
using RBAC.Domain.Department;
using RBAC.Domain.MaterialManage;
using RBAC.Domain.RBAC;
using RBAC.Write.Api.Application.Command.ERP.MaterialFile;
using RBAC.Write.Api.Application.Command.ERP.MaterialFile.Department;
using RBAC.Write.Api.Application.Command.Permission;
using RBAC.Write.Api.Application.Command.Role;
using RBAC.Write.Api.Application.Command.User;

namespace RBAC.Write.Api
{
    public class RBACAutoMapper : Profile
    {
        public RBACAutoMapper()
        {
            CreateMap<CreateUserCommand, UserModel>();
            CreateMap<CreateRoleCommand, RoleModel>();
            CreateMap<CreatePermissionCommand, PermissionModel>();
            CreateMap<UpdatePermissionCommand, PermissionModel>();
            CreateMap<UpdateRoleCommand, RoleModel>();
            CreateMap<UpdateUserCommand, UserModel>();
            
            // 部门
            CreateMap<CreateDepartmentCommand, DepartmentManagement>();
            
            // 物料分类管理
            CreateMap<AddMaterTypeCommand, MaterType>();
            
            // 物料基本档案管理
            CreateMap<CreateMaterialCommand, Mater>();
        }
    }
}
